<!doctype html>
<html><!-- InstanceBegin template="/Templates/template1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>聚宝CRM管理系统</title>
<!-- InstanceEndEditable -->
<link href="../css/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/utils.js"></script>
<script type="text/javascript" src="../js/checkLogin.js"></script> 
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<script type="text/javascript">
$(document).ready(function() {
	$.ajax({
	type : "get",
	datatype : "json",
	url : "../member/find/indexCount",
	success : function(data) {
		var rst = JSON.parse(data);
			if(rst.state==0){
				$("#count1").html(getHtmlInt(getHeadIndexValue(0, rst, "memberYester")));
			 	$("#count2").html(getHtmlInt(getHeadIndexValue(0, rst, "memberAll")));
			 	 $("#count3").html(getHtmlInt(getHeadIndexValue(0, rst, "rebateYester")));
			 	$("#count4").html(getHtmlInt(getHeadIndexValue(0, rst, "rebateAll"))); // 储值
			 	$("#focusNumAll").html(getHtmlInt(getHeadIndexValue(0, rst, "total")));
			 	 $("#count5").html(getHtmlString(getHeadIndexValue(0, rst, "coponsYester")))
			 	$("#count6").html(getHtmlString(getHeadIndexValue(0, rst, "couponsAll")))
				$("#count7").html(getHtmlString(getHeadIndexValue(0, rst, "couponsYesterCount")))
				$("#count8").html(getHtmlString(getHeadIndexValue(0, rst, "couponsAllCount")));
			 	
			 	$("#count9").html(getHtmlString(getHeadIndexValue(0, rst, "couponsUseAll")));
			 	$("#count10").html(getHtmlString(getHeadIndexValue(0, rst, "couponsUseYester")));
			 	$("#count11").html(getHtmlString(getHeadIndexValue(0, rst, "couponsUseYesterCount")));
			 	$("#count12").html(getHtmlString(getHeadIndexValue(0, rst, "couponsUseCount")));  //优惠券
			 	 $("#count13").html(getHtmlString(getHeadIndexValue(0, rst, "despoisUseAll")));
			 	$("#count14").html(getHtmlString(getHeadIndexValue(0, rst, "despoisUseYester")));  //返利
			 	$("#count15").html(getHtmlString(getHeadIndexValue(0, rst, "xiaoxi")));
			 	$("#count16").html(getHtmlString(getHeadIndexValue(0, rst, "orderCount")));
			 	$("#count17").html(getHtmlString(getHeadIndexValue(0, rst, "complaintCount")));
			 	$("#count18").html(getHtmlString(getHeadIndexValue(0, rst, "remindCount")));
			 	$("#count19").html(getHtmlString(getHeadIndexValue(0, rst, "allIntegral")));
			 	$("#count20").html(getHtmlString(getHeadIndexValue(0, rst, "yesIntegral")));
			 	$("#count21").html(getHtmlString(getHeadIndexValue(0, rst, "allCsmIntegral")));
			 	$("#count22").html(getHtmlString(getHeadIndexValue(0, rst, "yesCsmIntegral")));
			}
			}
	})	

	
	$.ajax({
		type : "get",
		datatype : "json",
		async:false,
		url : "../aunouncement/find/aunouncementList/1/10?status=0",
		success : function(data) {
			var rst = JSON.parse(data);
				if(rst.state==0){
					loadTable(rst)
					}
		}	
	});
});
function loadTable(json){
	$("#announcementList").empty();
	for ( var i = 0; i < json.result.data.length; i++) {
		var title=getHtmlString(getHeadIndexValue(i, json, "title"));
		var url=getHtmlString(getHeadIndexValue(i, json, "indexUrl"))
		var creatTime=getHtmlString(getHeadIndexValue(i, json, "creatTime"))
		var htm="<li><a target='_blank' href="+url+">"+title+"</a><span>"+creatTime+"</span></li>"
		$("#announcementList").append(htm);

	}
}
$(function(){
	getTaskRemindInfo()
})
</script>
</head>

<body>
<!-- InstanceBeginEditable name="EditRegion3" -->
<div class="container" id="container">
  <div class="container_R fr">
    <div class="news_title">
    <div class="inner_box">
    	<h3>关注客户/会员</h3>
      <ul class="inner">
        <li class="new_message"><a href="javascript:void(0)"><i></i><em id="focusNumDay">0</em><b>当日新增关注客户</b></a><a href="javascript:void(0)"><i></i><em id="count1">0</em><b>当日新增会员</b></a></li>
        <li class="new_people"><a href="javascript:void(0)"><i></i><em id="focusNumAll">0</em><b>总计关注数</b></a><a href="javascript:void(0)"><i></i><em id="count2">0</em><b>总计会员数 </b></a></li>
      </ul>
      </div>
    <div class="inner_box index_inner">
    	<h3>积分</h3>
      <ul class="inner">
        <li class="new_message number5"><a href="javascript:void(0)"><i></i><em id="count20">0</em><b>当日积分</b></a><a href="javascript:void(0)"><i></i><em id="count22">0</em><b>当日使用积分</b></a></li>
        <li class="new_people number6"><a href="javascript:void(0)"><i></i><em id="count19">0</em><b>总计积分 </b></a><a href="javascript:void(0)"><i></i><em id="count21">0</em><b>总使用积分</b></a></li>
      </ul>
      </div>
    <div class="inner_box">
    	<h3>优惠券</h3>
      <ul class="inner">
        <li class="new_message number3"><a href="javascript:void(0)"><i></i><em id="count5">0</em><b>当日优惠券发放<span class="page" id="count7">0</span>张</b></a><a href="javascript:void(0)"><i></i><em id="count10">0</em><b>当日优惠券使用<span class="page" id="count11">0</span>张</b></a></li>
        <li class="new_people number4"><a href="javascript:void(0)"><i></i><em id="count6">0</em><b>总计优惠券发放<span class="page" id="count8" >0</span>张</b></a><a href="javascript:void(0)"><i></i><em id="count9">0</em><b>总计优惠券使用<span class="page" id="count12" >0</span>张</b></a></li>
      </ul>
      </div>
   <div class="inner_box index_inner">
    	<h3>储值金额</h3>
      <ul class="inner">
        <li class="new_message number5"><a href="javascript:void(0)"><i></i><em id="count3">0</em><b>当日储值金额</b></a><a href="javascript:void(0)"><i></i><em id="count14">0</em><b>当日使用储值金额</b></a></li>
        <li class="new_people number6"><a href="javascript:void(0)"><i></i><em id="count4">0</em><b>总计储值金额</b></a><a href="javascript:void(0)"><i></i><em id="count13">0</em><b>总计使用储值金额</b></a></li>
      </ul>
      </div> 
    <!--  <div class="inner_box index_inner">
    	<h3>积分</h3>
      <ul class="inner">
        <li class="new_message number5"><a href="javascript:void(0)"><i></i><em id="count19">0</em><b>当日赠送积分</b></a><a href="javascript:void(0)"><i></i><em id="count21">0</em><b>当日使用积分</b></a></li>
        <li class="new_people number6"><a href="javascript:void(0)"><i></i><em id="count20">0</em><b>总计赠送积分</b></a><a href="javascript:void(0)"><i></i><em id="count22">0</em><b>总计使用积分</b></a></li>
      </ul>
      </div>  -->
    <div class="inner_box">
    	<h3>支付订单/当日消息</h3>
      <ul class="inner" style="height:82px;">
        <li class="new_message number7"><a href="javascript:void(0)"><i></i><em id="count16">0</em><b>支付订单</b></a></li>
        <li class="new_people number8"><a href="javascript:void(0)"><i></i><em id="count15">0</em><b>当日消息</b></a></li>
      </ul>
      </div>
    <div class="inner_box index_inner">
    	<h3>客户提醒/投诉和建议</h3>
      <ul class="inner" style="height:82px;">
        <li class="new_message number9"><a href="javascript:void(0)"><i></i><em id="count18">0</em><b>客户提醒</b></a></li>
        <li class="new_people number10"><a href="javascript:void(0)"><i></i><em id="count17">0</em><b>投诉和建议</b></a></li>
      </ul>
      </div>
      <div class="fc"></div>
    </div>
    <div class="index_news">
    	<h2 class="title">系统公告</h2>
        <ul id="announcementList">
        	
        </ul>
    </div>
  </div>
  <div class="fc"></div>
</div>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="../js/header.js"></script>
<script type="text/javascript" src="../js/left.js"></script>
<script type="text/javascript" src="../js/footer.js"></script>
</body>
<!-- InstanceEnd --></html>
